# import urllib.request
# url="http://www.baidu.com"
# # urllib.request.urlretrieve(url,"baidu.html")
# # url_img="https://img0.baidu.com/it/u=3456879329,4174391336&fm=26&fmt=auto"
# # urllib.request.urlretrieve(url_img,"t.png")
# url_video="https://vd3.bdstatic.com/mda-mjb4a9ezy2ts0q7g/sc/cae_h264_clips/1634008142378107963/mda-mjb4a9ezy2ts0q7g.mp4?auth_key=1634024002-0-0-dad055ccb57b81293a271ac02b422a70&bcevod_channel=searchbox_feed&pd=1&pt=3&abtest="
# urllib.request.urlretrieve(url_video,"m1.mp4")
import urllib.request

url = "https://www.baidu.com"
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.48 Safari/537.36"
}
request = urllib.request.Request(url=url, headers=headers)
response = urllib.request.urlopen(request)
content = response.read().decode("utf-8")
print(content)
